﻿namespace Luna.Connectors.ZohoCRM
{
    internal static class SerializerParams
    {
        public const string ELEMENT_ROW = "row";
        public const string ELEMENT_FIELD = "FL";
        public const string ELEMENT_RESPONSE = "response";
        public const string ELEMENT_ERROR = "error";
        public const string ELEMENT_ERROR_CODE = "code";
        public const string ELEMENT_ERROR_MESSAGE = "message";
        public const string ELEMENT_RESULT = "result";
        public const string ELEMENT_RECORD_DETAIL = "recorddetail";
        public const string ELEMENT_NODATA = "nodata";
        public const string ATTRIBUTE_VALUE = "val";
        public const string ATTRIBUTE_ROWNUM = "no";

        public const string DETAIL_VALUE_ID = "Id";
        public const string DETAIL_VALUE_CREATED = "Created Time";
        public const string DETAIL_VALUE_MODIFIED = "Modified Time";
        public const string DETAIL_VALUE_CREATED_BY = "Created By";
        public const string DETAIL_VALUE_MODIFIED_BY = "Modified By";

        public const string CONDITION_FORMAT = "({0}|{1}|{2})";
        public const string CONDITION_VALUE_START_PATTERN = "{0}*";
        public const string CONDITION_VALUE_END_PATTERN = "*{0}";
        public const string CONDITION_VALUE_CONTAINS_PATTERN = "*{0}*";

        public const string CONDITION_OPERATOR_IS = "=";
        public const string CONDITION_OPERATOR_ISNOT = "<>";
        public const string CONDITION_OPERATOR_CONTAINS = "contains";
        public const string CONDITION_OPERATOR_NOTCONTAINS = "doesn't contain";
        public const string CONDITION_OPERATOR_STARTWITH = "starts with";
        public const string CONDITION_OPERATOR_ENDSWITH = "ends with";
        public const string CONDITION_OPERATOR_GREATER_THAN = ">";
        public const string CONDITION_OPERATOR_GREATER_THAN_OR_EQUALS = ">=";
        public const string CONDITION_OPERATOR_LESSER_THAN = "<";
        public const string CONDITION_OPERATOR_LESSER_THAN_OR_EQUALS = "<=";

        public const string USER_OWNER_ID = "SMOWNERID";
    }
}